package com.hong.spring.common.order;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Auther: csh
 * @Date: 2020/7/14 17:44
 * @Description:
 */
@Component
@Order(10)
public class Orders {

    @Bean
    public OrderService1 order(){
        System.out.println("object1被加载了！");
        return new OrderService1();
    }


}
